package ru.ksu.ktk.diploma.sdi.mapping.learner.impl;

import ru.ksu.ktk.diploma.sdi.mapping.thesauri.DescriptorPair;

/**
 * Descriptor pair with its probability
 * 
 * @author coldflame 04.05.2009 23:09:41
 */
public class ProbableDescriptorPair extends DescriptorPair {
    private float positiveProbability;
    private float negativeProbability;

    public ProbableDescriptorPair(String firstId, String secondId, float positiveProbability, float negativeProbability) {
        super(firstId, secondId);
        this.positiveProbability = positiveProbability;
        this.negativeProbability = negativeProbability;
    }

    public ProbableDescriptorPair(DescriptorPair pair, float positiveProbability, float negativeProbability) {
        this(pair.getFirstId(), pair.getSecondId(), positiveProbability, negativeProbability);
    }

    public float getPositiveProbability() {
        return positiveProbability;
    }

    public void setPositiveProbability(float positiveProbability) {
        this.positiveProbability = positiveProbability;
    }

    public float getNegativeProbability() {
        return negativeProbability;
    }

    public void setNegativeProbability(float negativeProbability) {
        this.negativeProbability = negativeProbability;
    }

}
